html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
}

/* 全屏容器 */
#wrap {
    min-height: 100vh; /* 使用视口高度单位 */
    width: 100%; /* 宽度扩展到100% */
    max-width: none; /* 移除最大宽度限制 */
    margin: 0; /* 移除边距 */
    background-color: #fff;
    box-shadow: none; /* 移除阴影 */
    border-radius: 0; /* 移除圆角 */
    display: flex; /* 使用flex布局 */
    flex-direction: column; /* 垂直排列 */
}

#top_content {
    flex: 1; /* 自动填充剩余空间 */
    display: flex;
    flex-direction: column;
}

#header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 40px; /* 增加左右内边距 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#rightheader {
    text-align: right;
}

#rightheader p {
    margin: 0;
}

#rightheader a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

#rightheader a:hover {
    color: #bdc3c7;
}

#topheader h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.5rem); /* 使用clamp动态调整字体大小 */
}

#topheader h1 a {
    color: #fff;
    text-decoration: none;
}

#navigation {
    background-color: #34495e;
    height: 50px; /* 增加导航栏高度 */
    display: flex;
    align-items: center;
    padding: 0 40px; /* 增加左右内边距 */
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#navigation ul li {
    margin-right: 30px; /* 增加菜单项间距 */
}

#navigation ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: clamp(1rem, 1.5vw, 1.2rem); /* 动态调整字体大小 */
}

#navigation ul li a:hover {
    color: #bdc3c7;
    transform: scale(1.1);
}

#content {
    padding: 40px; /* 增加内边距 */
    animation: fadeInUp 0.8s ease-out;
    flex: 1; /* 自动填充剩余空间 */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#content h1 {
    color: #2c3e50;
    font-size: clamp(1.8rem, 3vw, 2.8rem); /* 动态调整字体大小 */
}

.button {
    transition: all 0.2s ease;
    padding: 12px 24px; /* 增加按钮大小 */
    font-size: 1rem;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.inputgri {
    transition: all 0.2s ease;
    padding: 12px 16px; /* 增加输入框内边距 */
    font-size: 1rem;
}

.inputgri:focus {
    transform: scale(1.02);
}